package com.yuwj.chinaa.base;

import android.os.Environment;

import java.io.File;

/**
 * 用到的常量
 */

public class ConstantParam {

    public static boolean isUseTestData = false;//是否使用测试数据
    public static final String app_name_title = "ChinaA";
    public static final String SHAREDPREFERENCE_FILE_NAME = app_name_title + "_sharedpreference";//sharedPreference 文件名称
    public static final String SDCARD_ROOT_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator;//内存卡根目录
    public static final String APP_CACHE_ROOT_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + app_name_title + File.separator;//app缓存根目录
    public static final String APP_APK_DOWNLOAD_PATH = APP_CACHE_ROOT_PATH + "download" + File.separator + "apk" + File.separator;//apk存放目录
    public static final String CRASH_PATH = APP_CACHE_ROOT_PATH + "crash" + File.separator;//崩溃日志目录
    public static final String REQ_PATH = APP_CACHE_ROOT_PATH + "req" + File.separator;//请求日志目录
    public static final String UPLOAD_COMPRESS_MEDIA_PATH = APP_CACHE_ROOT_PATH + "uploadCompressMedia" + File.separator;//要上传的压缩图片目录
    public static final String DOWNLOAD_FILE_PATH = APP_CACHE_ROOT_PATH + "download" + File.separator;//下载文件存放的目录
    //请求状态码
    public static final int REQUEST_RESPONSE_CODE_WITH_FAIL = 0;//失败
    public static final int REQUEST_RESPONSE_CODE_WITH_SUCCESS = 200;//成功

    //默认邀请码
    public static final String default_invate_code = "Y6X1N1";//默认邀请码

    //账户类型
    public static final int ACCOUNT_TYPE_WITH_GTE = 0;//GTE账户
    public static final int ACCOUNT_TYPE_WITH_GTK = 1;//GTK账户

    //bb交易货币类型
    public static final int BBTRADE_TYPE_WITH_BTC = 0;//BTC
    public static final int BBTRADE_TYPE_WITH_ETH = 1;//ETH
    public static final int BBTRADE_TYPE_WITH_XRP = 2;//XRP

    //实名认证的状态
    public static final int GENERAL_AUTH_WITH_FAIL = 20060003;//失败
    public static final int GENERAL_AUTH_WITH_NO = 20060004;//未认证
    public static final int GENERAL_AUTH_WITH_ING = 20060001;//认证中
    public static final int GENERAL_AUTH_WITH_SUCCESS = 20060002;//已认证


    //gte账户交易记录类型
    public static final String ACCOUNT_TRANSFER_TYPE_ALL = "all";//全部
    public static final String ACCOUNT_TRANSFER_TYPE_CHARGE = "0";//充值
    public static final String ACCOUNT_TRANSFER_TYPE_PULL = "1";//提现

    //订单类型
    public static final int TRANSACTION_TYPE_WITH_BUY = 20070001;//买入
    public static final int TRANSACTION_TYPE_WITH_SELL = 20070002;//卖出

    //订单状态
    public static final int TRANSACTION_STATUS_WITH_DENGDJY = 20080001;//等待交易
    public static final int TRANSACTION_STATUS_WITH_JIAOYZ = 20080002;//交易中
    public static final int TRANSACTION_STATUS_WITH_JIAOYWC = 20080003;//交易完成
    public static final int TRANSACTION_STATUS_WITH_CHEHJY = 20080004;//撤回交易


}
